import 'package:flutter/widgets.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class JrBadge extends StatelessWidget {
  final Widget content;
  final Color? color;
  const JrBadge({Key? key, required this.content, this.color}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: color ?? const Color(0xFFF14CFF),
        borderRadius: BorderRadius.circular(999),
      ),
      padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 2.h),
      child: content,
    );
  }
}
